<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 100px;
            height: 100px;

            /* display: inline-block; */
            display: inline;
        }

        .div1 {
            background-color: brown;
        }

        .div2 {
            background-color: orange;
        }

        /* 行内：加宽高不生效 */
        span {
            width: 200px;
            height: 200px;

            /* display: block; */
            display: inline-block;
        }

        .span1 {
            background: brown;
        }

        .span2 {
            background-color: orange;
        }
        /* 行内块：加宽高生效 */
        img {
            width: 100px;
            height: 100px;

            display: block;
        }
    </style>
</head>
<body>
    <!-- 块元素 -->
    <div class="div1">div 标签1</div>
    <div class="div2">div 标签2</div>

    <!-- 行内元素 -->
    <span class="span1">span111</span>
    <span class="span2">span2</span>

    <!-- 行内块元素 -->
    <img src="https://qiniu.777nx.cn/avatar.webp" alt="">
    <img src="https://qiniu.777nx.cn/avatar.webp" alt="">
</body>
</html>